package com.sunnada.edu.system.org.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public interface OrgService {
	/***
	 * explain 区域树
	 * 
	 * @author zjc 2016-8-10
	 * @param params
	 * @return List<?>
	 */
	public List<?> orgTree(HashMap<String, String> params);

	/***
	 * explain 总数量
	 * 
	 * @author zjc 2016-8-10
	 * @param params
	 * @return int
	 */
	public int getOrgCots(HashMap<String, String> params);

	/***
	 * explain 查询功能
	 * 
	 * @author zjc 2016-8-10 update zjc 2016-8-10
	 * @param params
	 * @return List<?>
	 */
	public List<?> findOrgs(HashMap<String, String> params);

	/***
	 * explain 区域保存
	 * 
	 * @author zjc 2016-8-10
	 * @param params
	 * @return List<?>
	 */
	public String orgAdd(HashMap<String, String> params);

	/**
	 * explain 根据recId获取区域信息
	 * 
	 * @author zjc 2016-8-10 update zjc 2016-8-10
	 * @param params
	 * @return String
	 */
	@SuppressWarnings("rawtypes")
	public Map getOrgByRecId(HashMap<String, String> params);

	/**
	 * explain 根据区域orgCode查询区域信息
	 * 
	 * @author zjc 2016-8-10 update zjc 2016-8-10
	 * @param params
	 * @return Map
	 */
	@SuppressWarnings("rawtypes")
	public Map orgByOrgcode(HashMap<String, String> params);

	/**
	 * explain 根据区域orgCode查询区域的子区域最大值
	 * 
	 * @author zjc 2015-10-8 update zjc 2015-10-8
	 * @param params
	 * @return String
	 */
	public String orgTreebig(HashMap<String, String> params);

	/**
	 * explain 区域修改功能
	 * 
	 * @author zjc 2015-5-13 update zjc 2015-5-13
	 * @param params
	 * @return String
	 */
	public String orgUpdate(HashMap<String, String> params);

	/**
	 * explain 区域删除功能
	 * 
	 * @author zjc 2015-5-14 update zjc 2015-5-14
	 * @param params
	 * @return String
	 */
	public String orgDel(HashMap<String, String> params);

	/**
	 * explain 区域启用功能
	 * 
	 * @author zjc 2015-5-26 update zjc 2015-5-26
	 * @param params
	 * @return String
	 */
	public String orgEnable(HashMap<String, String> params);

	/**
	 * explain 区域禁用功能
	 * 
	 * @author zjc 2015-5-26 update zjc 2015-5-26
	 * @param params
	 * @return String
	 */
	public String orgDisable(HashMap<String, String> params);

}
